package zjz.graduation.backend.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zjz.graduation.backend.model.Users;
import zjz.graduation.backend.mapper.UsersDao;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UsersDao usersDao;

    @Override
    public Users getByUsername(String username) {
        return usersDao.getByUsername(username);
    }

    @Override
    public String getUserNameByUid(int uid) {
        return usersDao.selectByUid(uid);
    }
    
    @Override
    public List<Users> getUsers() {
    	return usersDao.getUsers();
    }
}
